package model

import (
	"time"
)

type Cont struct {
	Id        int       `gorm:"column:id;type:bigint(20) UNSIGNED;primaryKey;not null;" json:"id"`
	UserId    int       `gorm:"column:user_id;type:bigint(20) UNSIGNED;not null;" json:"user_id"`
	Name      string    `gorm:"column:name;type:varchar(255);not null;" json:"name"`
	Dianzan   int       `gorm:"column:dianzan;type:bigint(20);not null;" json:"dianzan"`
	Neiroh    string    `gorm:"column:neiroh;type:varchar(255);not null;" json:"neiroh"`
	CreatedAt time.Time `gorm:"column:created_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"created_at"`
	UpdatedAt time.Time `gorm:"column:updated_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"updated_at"`
	DeletedAt time.Time `gorm:"column:deleted_at;type:datetime(3);default:NULL;" json:"deleted_at"`
}

func (Cont) TableName() string {
	return "cont"
}
